import config from '../config/config';
import request from '../utils/request';

let service = {};

service.login = (param, cb) => {
  param = param || {};

  request({
    url: config.api.login,
    showLoading:true,
    data: param,
    method: 'POST',
    success: res => {
      cb(res);
    },
    fail: res => {
    }
  });
}

service.phoneNumber = (param, cb) => {
  param = param || {};

  request({
    url: config.api.phoneNumber,
    showLoading:true,
    data: param,
    method: 'POST',
    success: res => {
      cb(res);
    },
    fail: res => {
    }
  });
}




module.exports = service;